let layout = `
<frame>
        {/* 登录页面容器 */}
        <frame id="loginContainer">
        </frame>
    <vertical id="mainContainer" visibility="gone" bg="#F5F5F5">
         <appbar bg="#2F4F4F" >
            <frame h="35">
                <card   w="50" h="36" cardCornerRadius="15" cardBackgroundColor="#CC3333" layout_gravity="center|left"> 
                <button id="exitbut" text="退出" textSize="12sp"   bg="#CC3333" textColor="#ffffff" />
                </card>
                <text id="title" textSize="18sp"  textColor="white" textStyle="bold" gravity="center" />
                <toolbar id="toolbar" />
                <Switch textSize="12sp" w="auto" id="autoService"  textColor="white" checked="{{auto.service != null}}" layout_gravity="center|right" paddingRight="10" />
            </frame>
            <tabs id="tabs" h="40" bg="#2F4F4F" tabIndicatorColor="#FFFFFF" />
        </appbar>
        <vertical gravity="center|bottom"  >
                <TextView id="ad2" textSize="15sp" paddingBottom="5" singleLine="true" ellipsize="marquee" gravity="center|bottom" focusable="true" text="{{sm}}" textColor="#2F4F4F" />
                </vertical>
        <viewpager id="viewpager">
            
            <vertical paddingLeft="3" paddingRight="3">
             
                <card w="*" h="40" cardBackgroundColor="#000000" margin="10 1 10 1" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="3dp">
                <card w="*" h="36"  cardCornerRadius="2dp" margin="2" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="1">
                    
                    <linear orientation="horizontal" gravity="center">
                        
                            <Switch id="autoignoring" text="电池优化" layout_gravity="center|right" checked="{{$power_manager.isIgnoringBatteryOptimizations()}}" padding="8" textSize="15sp" />
                            <Switch id="autoforeground" text="前台服务" layout_gravity="center|right" checked="{{$settings.isEnabled('foreground_service')}}" padding="8" textSize="15sp" />
                        
                    </linear>
                    
                </card>
                </card>

                <vertical>
                    <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                            cardElevation="2dp" gravity="center">  
                                <vertical padding="5 4"  gravity="center">
                            
                                <input id="ip_adress" w="auto"   gravity="center" textSize="15sp" hint="请输入服务器地址 0.0.0.0" text="{{ip_adress}}"/>
                            
                            </vertical>          
                    </card>
                </vertical>

                <frame>   
                    <vertical margin="10"> 
                    <horizontal padding="10 -8 8 0">
                                <text text="编号:" textSize="18sp" textColor="black"  />
                                <input id="remarks" textSize="48sp" textColor="red" gravity="center"  w="auto" minWidth="100" text="{{remarks}}"/>
                    </horizontal>

                    </vertical>
                </frame>
          
                <text text="   注意事项：" gravity="left" textColor="#FF8C00" />
                <text text="   1.请手机使用淘宝10.15.30版本," gravity="left" />
                <text text="   2.本软件需要无障碍权限和悬浮窗权限," gravity="left" />
                <text text="   3.请自行开启以上权限。" gravity="left" />
                
                <linear  gravity="center">
                <button id="start" text="▶" w="250" style="Widget.AppCompat.Button.Colored" visibility="gone"/>

                </linear>
                
                {/* 添加退出登录按钮 */}
                <linear gravity="center" margin="0 10 0 0">
                    <button id="logoutBtn" text="退出登录" w="250" style="Widget.AppCompat.Button.Colored"/>
                </linear>
            
                       
            </vertical>
            
            <vertical paddingLeft="3" paddingRight="3">
            <checkbox id="mStart" textSize="14sp"  text="隐藏悬浮按钮" gravity="center|left" />
            <linear >
            <checkbox id="mOpenC" textSize="14sp"  text="悬浮日志" gravity="center|left" />
            <frame layout_weight="1"></frame> {/* <!-- 这个空白视图将向右推动卡片 --> */}

            
            <frame  padding="10">
                <card w="*" h="*" cardBackgroundColor="#000000" margin="10 1 10 1" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="3dp">
                    <card w="*" h="*"  cardCornerRadius="2dp" margin="2" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="1">
                        
                        <linear orientation="horizontal">
                            <text id="OpenDebugger"  w="auto" textColor="#222222" textSize="14sp" padding= "10 0" text="打开日志" />
                        </linear>
                        
                    </card>
                </card>
            </frame>
            
            </linear>
            <linear >
            <frame layout_weight="1"></frame> {/* <!-- 这个空白视图将向右推动卡片 --> */}

            
            <frame  padding="10">
                <card w="*" h="*" cardBackgroundColor="#000000" margin="10 1 10 1" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="3dp">
                    <card w="*" h="*"  cardCornerRadius="2dp" margin="2" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="1">
                        
                        <linear orientation="horizontal">
                            <text id="clearCache"  w="auto" textColor="#222222" textSize="14sp" padding= "10 0" text="清空坐标缓存" />
                        </linear>
                        
                    </card>
                </card>
            </frame>
            
            </linear>
            <linear > 
            <checkbox id="gLocaltaobao" textSize="14sp" checked="{{gLocaltaobao}}"  text="淘宝" gravity="center|left" />
            <checkbox id="gLocallitetao" textSize="14sp" checked="{{gLocallitetao}}"  text="淘特" gravity="center|left" />
            </linear>
            <frame>{/* 横线布局 */}
                <horizontal padding="8">
                <View h="1" bg="#CCCCCC" layout_gravity="center_horizontal"/>
                </horizontal>
            </frame> 
            <vertical>
                <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                        cardElevation="2dp" gravity="center">  
                        <vertical padding="5 4">
                        
                        <linear>
                        <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="支付密码:" />
                        <input id="gPassword"  marginLeft="10" w="100" gravity="center" textSize="15sp"  />
                        </linear>   
                        <linear>
                        <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="安全口令:" />
                        <input id="gSafeCode"  marginLeft="10" w="100" gravity="center" textSize="15sp"  />
                        </linear>   
                        </vertical>          
                </card>
            </vertical>
            <vertical >
          
                <text text="选择任务类型"/>
                <radiogroup id="radiogroup1" orientation = "horizontal"  >
                    <radio id="radio1"  text="全部选中" visibility="gone"/>
                    <radio id="radio2" text="循环收货" visibility="gone"/>
                    <radio id="radio3" text="扫码刷单" visibility="gone"/>
                    <radio id="radio4" text="任务四" visibility="gone"/>
                </radiogroup>
                <linear id="randomWaitLayout" visibility="gone"> 
                    <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="收货随机等待[ " />
                    <input id="randomMin"  marginLeft="10" minWith="100px" gravity="center" textSize="15sp"  text=""/>
                    <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text=" ] 到 [" />
                    <input id="randomMax"  marginLeft="10" minWith="100px" gravity="center" textSize="15sp"  text=""/>         
                    <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text=" ]秒" />
                </linear>
            </vertical>
            <vertical visibility="gone">
            <vertical  layout_width="match_parent" layout_height="wrap_content"  >
               <card    > 
                   <linear gravity="right">
                   <button id="删除记录"  textSize="10dp" textColor="#000000" style="Widget.AppCompat.Button.Colored" text='删除记录'/>
                   <button id="清空记录"  textSize="10dp" textColor="#000000" style="Widget.AppCompat.Button.Colored" text='清空记录'/>
                   </linear>
               </card>
               <card> 
                    
                   <scroll>
                   
                       <list id='todoList' >
                           <frame id='parent' >
                                <frame>{/* 横线布局 */}
                                    <horizontal >
                                    <View h="1" bg="#000000" layout_gravity="center_horizontal"/>
                                    </horizontal>
                                </frame> 
                               <linear>
                               <text textSize='20sp' w="200"  maxLines="1" textColor="#000000" text='{{this.content}}  '></text>
                               <text textSize='15sp' w="60"  maxLines="1" textColor="#000000" text='{{this.state}}  '></text>
                               <text textSize='12sp' maxLines="1"  textColor="#000000" text='{{this.time}}'></text>
                               </linear>
                          
                           </frame>
                       </list>
                </scroll>
               </card>
         
          </vertical>
            
            </vertical>
           <vertical visibility="gone">
            <linear > 
            <checkbox id="gLocaltaobao" textSize="14sp" checked="{{gLocaltaobao}}"  text="淘宝" gravity="center|left" />
            <checkbox id="gLocallitetao" textSize="14sp" checked="{{gLocallitetao}}"  text="淘特" gravity="center|left" />
            </linear>

            <text textSize="20sp" gravity="center" text="= = = = = = = = = = = = = = = = = = = = = ="/>
            <linear > 
            <checkbox id="gLocaladd" textSize="14sp" checked="{{gLocaladd}}"  text="加购物车" gravity="center|left" />
            <checkbox id="gLocalpay" textSize="14sp" checked="{{gLocalpay}}"  text="单个付款" gravity="center|left" />
            <checkbox id="gLocalpays" textSize="14sp" checked="{{gLocalpays}}"  text="合并付款" gravity="center|left" />
            <input id="gpaysNum"  marginLeft="10" minWith="80" gravity="center" textSize="15sp"  text="{{gpaysNum}}"/>
            </linear>
           
            <vertical>
                <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                        cardElevation="2dp" gravity="center">  
                            <vertical padding="5 4">
                            <linear>
                        <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="文件路径:" />
                        </linear>   
                        <input id="glinePath"  marginLeft="10" minWith="80" gravity="center" textSize="15sp"  text="{{glinePath}}"/>
                        <linear>
                        <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="支付密码111:" />
                     
                        </linear>   
                        </vertical>          
                </card>
            </vertical>
            </vertical>
            
            <vertical visibility="gone">
            <checkbox id="gLocalReceipt" textSize="14sp" checked="{{gLocalReceipt}}"  text="收货评价" gravity="center|left" />
            <vertical>
                <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                        cardElevation="2dp" gravity="center">  
                            <vertical padding="5 4">
                            <linear>
                        <text id="mPath" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="评论文件路径:" />
                        </linear>   
                        <input id="gPath"  marginLeft="10" minWith="80" gravity="center" textSize="15sp"  text="{{gPath}}"/>
                        </vertical>          
                </card>
            </vertical>
            <checkbox id="gLocalset" textSize="14sp" checked="{{gLocalset}}"  text="使用本地配置" gravity="center|left" />
            <vertical>
                <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                        cardElevation="2dp" gravity="center">  
                            <vertical padding="5 4">
                            <linear>
                        <text id="mCache" w="auto" marginLeft="10" textColor="#222222" textSize="14sp"  text="输出文件路径:" />
                        <frame>
                            <card w="*" h="*" cardBackgroundColor="#000000" margin="10 1 10 1" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="3dp">
                                <card w="*" h="*"  cardCornerRadius="2dp" margin="2" cardElevation="1dp" gravity="center_vertical" alpha="1" cardCornerRadius="1">
                                    
                                    <linear orientation="horizontal">
                                        <text id="clear"  w="auto" textColor="#222222" textSize="14sp" padding= "10 0" text="清除任务记录" />
                                    </linear>
                                    
                                </card>
                            </card>
                        </frame>
                        </linear>   
                        <input id="mCachePath"  marginLeft="10" minWith="80" gravity="center" textSize="15sp"  text="{{mCachePath}}"/>
                        </vertical>          
                </card>
            </vertical>
            <vertical>
                    <card w="*" h="*" margin="10 8" cardCornerRadius="6dp" 
                            cardElevation="2dp" gravity="center">  
                            <vertical padding="5 4"  gravity="center">
                                <linear>
                                <text id="task" w="auto" textColor="#222222" textSize="14sp" text="任务链接:" />
                                </linear>
                                <horizontal>
                                
                                <input id="gTaskPath"   gravity="center|bottom" textSize="15sp" hint="请填入链接(一行一条)" minWidth="500" lines="8"  text="{{gTaskPath}}"/>
                                
                                </horizontal>
                            
                            </vertical>          
                    </card>
                </vertical>
            
                
            </vertical>

            </vertical>
          
                
                
        </viewpager>
      
         

            

    </vertical>
    </frame>
`;

module.exports = {
    layout: layout,
    version: "1.0.4"
}; 